package com.kzj.service;

import com.kzj.common.re.Result;
import com.kzj.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kzj.domain.dto.UserLoginDTO;
import com.kzj.domain.dto.UserRegisterDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kzj
 * @since 2023-11-15
 */
public interface UserService extends IService<User> {

    Result register(UserRegisterDTO userRegisterDTO, HttpServletRequest request);

    Result login(UserLoginDTO userLoginDTO,HttpServletRequest request);

    Result getByPhone(String phone);

    Result updateByPhone(User user);

    Result sendMessageCode(String phone,HttpServletRequest request);
}
